namespace PersianDateControls
{
    internal sealed class TextBoxDesigner : System.Web.UI.Design.ControlDesigner
    {
        public TextBoxDesigner()
        {
        }

        public override string GetDesignTimeHtml()
        {
            return string.Format(System.Globalization.CultureInfo.InvariantCulture, "<table cellpadding=\"0\" cellspacing=\"0\" style=\"direction: rtl\"><tr><td><input name=\"{0}\" type=\"text\" ID=\"{0}\" style=\"{1}{2}\" /></td><td style=\"width: 5px\" /><td style=\"width: 15px\"><div style=\"width: 15px; height: 15px; BACKGROUND-COLOR: #0099ff;\" /></td></tr></table>", ((PersianDateTextBox)Component).ID, (((PersianDateTextBox)Component).Width.IsEmpty ? string.Empty : string.Format("width:{0}px;", (((PersianDateTextBox)Component).Width.Value > 80 ? ((PersianDateTextBox)Component).Width.Value - 20 : 80))), (((PersianDateTextBox)Component).Height.IsEmpty ? string.Empty : string.Format("height:{0}px", ((PersianDateTextBox)Component).Height.Value)));
        }
    }
}